@import '~antd/lib/style/themes/default.less';
@dashboard-prefix-cls: ~"ams-monitor-dashboard";

.@{dashboard-prefix-cls} {
  .nstree-container {
    min-width: auto !important;
  }
  .@{dashboard-prefix-cls}-nstree-switch {
    position: absolute;
    top: 0;
    right: -14px;
    width: 15px;
    height: 37px;
    line-height: 33px;
    background: #fff;
    border: 1px solid #e7e9ed;
    cursor: pointer;
  }
  .@{dashboard-prefix-cls}-ns-flotage {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 37px;
    line-height: 37px;
    border: 1px solid #e7e9ed;
    background: #fff;
    box-shadow: 1px 1px 2px #efefef;
    z-index: 1;
    cursor: pointer;
    span {
      display: inline-block;
      width: 185px;
      padding: 0 10px;
    }
  }
  .@{dashboard-prefix-cls}-card {
    .normal {
      color: #333;
      padding: 0 10px 7px 10px;
    }
    .active {
      color: @primary-color;
      border-bottom: 2px solid @primary-color;
      padding: 0 10px 7px 10px;
    }
  }
  .layout-splitter-handle {
    height: 100%;
    position: absolute;
    top: 0;
    right: -6px;
    width: 11px;
    z-index: 1;
    cursor: col-resize;
  }
  .layout-splitter-handle-highlight {
    position: absolute;
    top: 0;
    left: 4px;
    bottom: 0;
    width: 6px;
    background-image: url();
    background-position: 100%;
    background-repeat: no-repeat;
  }
  // fix multipicker
  .multipicker-selected-list-box > div {
    height: 38px;
    line-height: 38px;
    padding: 0 8px;
  }
  .multipicker-selected-list {
    .ant-tag { margin-bottom: 5px; }
  }
  .ant-select-selection--multiple {
    padding-bottom: 0;
  }
  .ant-layout {
    background: none;
  }
  .ant-divider {
    margin: 0 4px;
    color: #999;
    display: inline-block;
    height: 8px;
    width: 1px;
    background: #ccc;
  }
  .ant-tabs-bar {
    margin-bottom: 5px;
  }
  .ant-menu-vertical > .ant-menu-item, .ant-menu-inline > .ant-menu-item, .ant-menu-item-group-list > .ant-menu-item, .ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title {
    line-height: 28px;
    height: 28px;
    margin-bottom: 0;
  }
  .tabPane {
    height: 384px;
    overflow-y: auto;
    overflow-x: hidden;
    .ant-tooltip-inner {
      max-width: max-content;
    }
  }
  .ant-tabs-mini .ant-tabs-tab .ant-tabs-tab-inner {
    padding: 8px 8px;
  }
  /**
   * Tabs card 模式 样式改成 line 的展示方式，为了避免 line 模式切换的动画
   */
  .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
    border: 0 none;
    background: none;
    margin-right: 1px;
  }
  .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-ink-bar {
    visibility: inherit;
  }
  .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-nav-container {
    height: auto;
  }
  .ant-card-head {
    min-height: auto;
    height: 36px;
    line-height: 36px;
    padding: 0 14px;
  }
  .ant-card-head-wrapper {
    display: unset;
  }
  .ant-card-head-title {
    padding: 0;
    font-size: 14px;
  }
  .ant-card-extra {
    padding: 0;
    font-size: 12px;
  }
  .ant-card-body {
    padding: 5px;
    position: relative;
  }
}

.@{dashboard-prefix-cls}-metrics-title {
  .ant-input {
    border: 0 none;
    width: 200px;
    font-weight: normal;
    display: inline-block;
    margin-left: 10px;
  }
  .ant-input:focus {
    box-shadow: unset;
  }
}

.@{dashboard-prefix-cls}-graph {
  margin-bottom: 10px;
  background: #fff;
  border-radius: 4px;
  // border: 1px solid #d9d9d9;
  border-color: #e9e9e9;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  -webkit-transition: all .3s;
  transition: all .3s;
}

.@{dashboard-prefix-cls}-graph-add {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px;
}
